import { ElMessage, ElMessageBox } from 'element-plus'

//提示框
export function tips(msg: string, type: string) {
  return ElMessage({
    message: msg,
    type: type,
  })
}

//确认框
export function Modals(msg: string,title:string, type: string) {
  return ElMessageBox.confirm(
    msg,
    title,
    {
      confirmButtonText: '确认',
      cancelButtonText: '取消',
      type: type,
    }
  )
}
